package com.itheima.job.controller;

import com.itheima.job.dto.ActiveDTO;
import com.itheima.job.dto.AuthDTO;
import com.itheima.job.dto.RegisterDTO;
import com.itheima.job.result.Result;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author byZhao
 * @motto Talk is cheap . Show me the code!
 * @modify 2021-11-27 11:28
 * @description
 */
@RestController
@RequestMapping("auth")
public class UserController {

    /**
     * 注册业务
     */
    @PostMapping("register")
    public Result register(@RequestBody RegisterDTO registerDTO) {
        return null;
    }

    /**
     * 激活业务
     */
    @PostMapping("active")
    public Result active(@RequestBody ActiveDTO activeDTO) {
        return null;
    }

    /**
     * 登录业务
     */
    @PostMapping("login")
    public Result auth(@RequestBody AuthDTO authDTO) {
        return null;
    }


}
